package com.wzy.java;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class test17 {
    public static void main(String[] args) {
        String[] s = new String[]{"dog", "lazy", "a", "over", "jumps", "fox", "brown", "quick", "A"};
        List<String> list = Arrays.asList(s);
        Collections.reverse(list);
        // 没有指定类型的话会报错
        s = list.toArray(new String[0]);
        System.out.println(s);
    }
}
